package com.riteny.mybatis.scanner;

import java.util.List;

/**
 * @author Riteny
 * 2019/7/25  15:58
 */
public interface BaseMapper<ID,T> {

    int delete(ID id);

    int insert(T entity);

    T selectByPrimaryKey(ID id);

    int update(T record);

    List<T> selectBySearchCriteria(SearchCriteria searchCriteria);
}
